<#if pg??>${pg.countHtml!}</#if>
<table class="list">
  <tr>
    <th width="9%">姓名</th>
    <th width="8%">K-Yoga卡号</th>
    <th width="9%">手机号</th>
    <th width="6%">类型</th>
    <th width="18%">课程</th>
    <th width="12%">教练</th>
    <th width="11%">预约时间</th>
    <th width="11%">上课时间</th>
    <th width="6%">状态</th>
    <th>操作</th>
  </tr>
  <#if list??><#list list as c>
  <tr<#if c_index%2==1> class="line2"<#else> class="line1"</#if>>
    <td class="member"><a href="javascript:mbinfo('${c.memberCode!}');">${c.custName!}</a></td>
    <td>${c.cardCode!}</td>
    <td>${c.mobile!}</td>
    <td><#if c.classType='1'>1对1<#else>1对多</#if></td>
    <td><@value type="ptItemName" key="${c.ptCode!}"/></td>
    <td>${c.coachCode!}-<@value type="ptCoachName" key="${c.coachCode!}"/></td>
    <td>${c.bespeakDate?string("yyyy-MM-dd HH:mm")!}</td>
    <td>${c.classTime?string("yyyy-MM-dd HH:mm")}</td>
    <td><@value type="bespeakStatus" key="${c.status!}"/></td>
    <td class="oper"><#if c.status=2 && canClear?? && c.classTime?string("yyyy-MM-dd")=nowDate?string("yyyy-MM-dd")><a class="apply" href="javascript:clear('${c.autoId!}');">入场</a></#if>
      <#if c.status=2 && canCancel?? && (c.classTime gt nowDate?datetime)><a class="apply" href="javascript:cancel('${c.autoId!}');">取消</a></#if></td>
  </tr>
  </#list></#if>
</table>
<#if pg??>${pg.pageHtml!}</#if>
